/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package au.edu.swin.swinvehicle.corporateclient;

import java.util.List;
import javax.ejb.Remote;

/**
 *
 *
 * @author Administrator
 */
@Remote
public interface CorporateClientManagerRemote {

    public void addCorporateClient(CorporateClientDetailedTO to) throws CorporateClientManagerException;

    public void editCorporateClient(CorporateClientDetailedTO to) throws CorporateClientManagerException;

    public void editCorporateClientDetails(CorporateClientDetailedTO to) throws CorporateClientManagerException;

    public void deleteCorporateClient(Long id) throws CorporateClientManagerException;

    public CorporateClientDetailedTO getCorporateClient(Long id) throws CorporateClientManagerException;

    public List<CorporateClientTO> getAllCorporateClients() throws CorporateClientManagerException;

    public List<CorporateClientDetailedTO> getAllDetailedCorporateClients() throws CorporateClientManagerException;

    public boolean isUsernameAvailable(String userName) throws CorporateClientManagerException;

    public Long authenticate(String username, String password) throws CorporateClientManagerException;
}
